package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

import java.util.Date;

@Data
@Notes("项目审核记录表")
@TablePlus(name = "dict_project_review")
public class DictProjectReview extends BaseModel {

    @Notes("项目id，外键")
    @ColumnPlus()
    @FKPlus(tableClass = DictProject.class)
    private Long project_id;

    @Notes("审核类别。1售前移交售中审核记录，2售中受理记录，3售中验收审核记录，4项目交维受理记录")
    @ColumnPlus()
    private int review_type;

    @Notes("审核时间")
    @ColumnPlus()
    private Date review_time;

    // 提交审核人
    @Notes("提交审核人id")
    @ColumnPlus()
    private int from_user_id;

    @Notes("提交审核人姓名")
    @ColumnPlus(default_val = "''", length = "20")
    private String from_user_name;

    // 审核人
    @Notes("审核人id")
    @ColumnPlus()
    private int to_user_id;

    @Notes("审核人姓名")
    @ColumnPlus(default_val = "''", length = "20")
    private String to_user_name;

    // 审核结果
    @Notes("审核结果。0未审核，1审核通过，2审核驳回")
    @ColumnPlus(default_val = "0", length = "1")
    private int result;

    @Notes("审核备注")
    @ColumnPlus(default_val = "''", length = "20")
    private String remark;


}
